package model

import (
    "black_mamba/global"
)

// 如果含有time.Time 请自行import time包
type Inventory struct {
      global.BM_MODEL
      Country string `json:"country" form:"country" gorm:"column:country;comment:;type:varchar(255);size:255;"`
      EndPoint string `json:"endPoint" form:"endPoint" gorm:"column:endPoint;comment:;type:varchar(255);size:255;"`
      Url string `json:"url" form:"url" gorm:"column:url;comment:;type:varchar(255);size:255;"`
      Category string `json:"category" form:"category" gorm:"column:category;comment:;type:varchar(255);size:255;"`
      ParentAsin string `json:"parent_asin" form:"parent_asin" gorm:"column:parent_asin;comment:;type:varchar(255);size:255;"`
      InventoryHistory []InventoryHistory `json:"inventoryHistory" gorm:"foreignKey:inventory_id"`

}

func (Inventory) TableName() string {
  return "inventory"
}

